Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Conversation

@daprahamian
Copy link
Contributor

If the user does not specify an IP family, we will attempt to
connect first via IPv6, and fall back to IPv4 if that fails

Currently WIP as I need to write unit tests for this.

@daprahamian daprahamian changed the title WIP: feat(connection): attempt both ipv6 and ipv4 when no family entered feat(connection): attempt both ipv6 and ipv4 when no family entered Dec 18, 2017
@daprahamian
Copy link
Contributor Author

Removed WIP, this should be ready for review

@daprahamian daprahamian force-pushed the NODE-1222 branch 2 times, most recently from 37def16 to 239cac9 Compare December 19, 2017 16:36
@@ -0,0 +1,127 @@
'use strict';

var bson = require('bson');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lone var

self.responseOptions.promoteValues = _options.promoteValues;
self.responseOptions.promoteBuffers = _options.promoteBuffers;
function makeSSLConnection(self, _options) {
var sslOptions = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lone var

If the user does not specify an IP family, we will attempt to
connect first via IPv6, and fall back to IPv4 if that fails

Fixes NODE-1222
@daprahamian
Copy link
Contributor Author

Updated to remove vars

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants